package com.hontech.bvapp2.app

import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import com.hontech.bvapp2.ui.MainActivity

class BootReceiver : BroadcastReceiver() {

    override fun onReceive(context: Context?, intent: Intent?) {
        val action = intent?.action ?: return
        if (action != Intent.ACTION_BOOT_COMPLETED) {
            return
        }
        val i = Intent(context, MainActivity::class.java)
        context?.startActivity(i)
    }
}

